﻿using System.Linq;
using Quickie.Models;
using Quickie.Models.IoC;
using Quickie.Models.Data;
using Quickie.Models.Entities;
using Quickie.Models.ViewModel;
using Quickie.Models.Interfaces;

namespace Quickie.Models.Interfaces
{
    /// <summary>
    /// Sucelje koje predstavlja data provider
    /// </summary>
    public interface IDataProvider
    {
        IQueryable<T> Linq<T>() where T : class,IEntity;
        void Insert<T>(T entity) where T : class, IEntity;
        void Delete<T>(T entity) where T : class, IEntity;
        void SubmitChanges();
    }
}